package com.bicon.botu.finance.payment.repository;


import com.bicon.botu.finance.payment.entity.PayInfoEntity;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

/**
 * Created by L on 2017/6/23.
 */
@RepositoryRestResource(path = "payInfo",collectionResourceRel = "payInfo")
public interface PayInfoRepository extends MongoRepository<PayInfoEntity,String> {

    PayInfoEntity findOneByOrderNoAndCode(String orderNo, String code);

    PayInfoEntity findOneByOrderNoAndCodeAndPayResult(String orderNo, String code, String result);

}
